package com.direct.domian;
import java.util.HashSet;
import java.util.Set;

/**
 * 城市
 * 
 * @author Administrator
 * 
 */

public class City {

	private String id;
	// 所属省份
	private Provice provice;
	// 名称
	private String name;
	// 序号
	private Integer sorted;
	// 所拥有的城镇
	private Set towns = new HashSet(0);

	public City() {
	}

	public City(String id) {
		this.id = id;
	}

	public City(String id, Provice provice, String name, Integer sorted, Set towns) {
		this.id = id;
		this.provice = provice;
		this.name = name;
		this.sorted = sorted;
		this.towns = towns;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Provice getProvice() {
		return provice;
	}

	public Integer getSorted() {
		return sorted;
	}

	public Set getTowns() {
		return towns;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setProvice(Provice provice) {
		this.provice = provice;
	}

	public void setSorted(Integer sorted) {
		this.sorted = sorted;
	}

	public void setTowns(Set towns) {
		this.towns = towns;
	}

}